package com.example.lck;


public class Main {
    public static void main(String[] args) {
        WareHouse wareHouse = new WareHouse(3);
        Producer p1 = new Producer("p1", wareHouse);
        Producer p2 = new Producer("p2", wareHouse);
        Producer p3 = new Producer("p3", wareHouse);

        Customer c1 = new Customer("c1", wareHouse);
        Customer c2 = new Customer("c2", wareHouse);
        Customer c3 = new Customer("c3", wareHouse);
        Customer c4 = new Customer("c4", wareHouse);
        Customer c5 = new Customer("c5", wareHouse);

        new Thread(p1).start();
        new Thread(p2).start();
        new Thread(p3).start();
        new Thread(c1).start();
        new Thread(c2).start();
        new Thread(c3).start();
        new Thread(c4).start();
        new Thread(c5).start();
    }
}
